<script src="../media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="../media/system/js/core.js" type="text/javascript"></script>
<form action="index.php?top=page&option=com_frcenter" method="post" name="adminForm" id="adminForm">
<!-- LEFT -->
 <?php echo $this->loadTemplate('search','default') ?>
 <!-- END LEFT -->

 <!-- CONTENT -->
 <div id="jm-content">
    <div class="cc title">
        <div class="id"><?php echo $this->row->OCBA_CODE; ?></div>
        <div class="cc-title">
            <p class="top"><?php echo $this->row->OCBA_KANA; ?></p>
            <p class="bot"><?php echo $this->row->OCBA_NAME; ?><span class="float-right">【<?php echo $this->row->OCBA_SHOR; ?>】</span></p>
        </div>
    </div>
    <div class="clearfix"></div>
    <div class="menu-cc">
        <ul id="nav">

        <?php
            foreach(bgData::getMenuDetailCenter() as $key=>$item){
                $acctive = 'normal';
                if(JRequest::getVar('task') == $key){
                    $acctive = 'current';
                }

                if($this->row->OCBA_IMG && file_exists('uploads/images/com_center/'.$this->row->OCBA_IMG))
                    $img = 'uploads/images/com_center/'.$this->row->OCBA_IMG;
                else
                    $img = 'https://compass.bgf.or.jp/components/com_frcenter/public/images/nopicture.gif';
         ?>
            <li class="<?php echo $acctive; ?>"><a href="index.php?top=page&option=com_frcenter&task=<?php echo $key; ?>&id=<?php echo $this->row->OCBA_CODE; ?>"><?php echo $item; ?></a></li>
          <?php } ?>

        </ul>
    </div>
    <h3 class="h_title">基本情報<span style="float: right;">更新日:<?php if($this->row->OCBA_DATE!='0000-00-00 00:00:00') echo HelperBG::F_GetDate_JP($this->row->OCBA_DATE); ?></span></h3>
    <div class="info-basic">
    <?php if($this->row != null){ ?>
        <div>
            <div class="img" width="240px" height="180px">

                <img width="240px" height="180px" src="<?php echo $img; ?>"  />
            </div>
            <table width="440" border="0" cellspacing="0" cellpadding="0">
                <tbody><tr>

                <td width="120" valign="top" nowrap="">

                所在地


                </td>
                <td width="300" valign="top">

                <?php if($this->row->OCBA_POST!=null)echo '〒'.$this->row->OCBA_POST; ?><br/>
                <?php echo $this->row->OCBA_ADD1; ?><br/>
                <?php echo $this->row->OCBA_ADD2; ?><br/>
                Tel：<?php echo $this->row->OCBA_TEL; ?>
                Fax：<?php echo $this->row->OCBA_FAX; ?>

                </td>
                </tr>
                <tr>

                </tr>
                <tr>

                <td valign="top" nowrap="">

                連絡先


                </td>
                <td valign="top">
                <?php echo $this->row->OCBA_LNAME; ?><br/>
                <?php if($this->row->OCBA_LPOST!=null) echo '〒'.$this->row->OCBA_LPOST; ?><br/>
                <?php echo $this->row->OCBA_LADD1; ?><br/>
                <?php echo $this->row->OCBA_LADD2; ?><br/>
                Tel：<?php echo $this->row->OCBA_LTEL; ?>
                Fax：<?php echo $this->row->OCBA_LFAX; ?>

                </td>
                </tr>
                <tr>

                </tr>
                <tr>

                <td valign="top" nowrap="">

                代表者<br/>
                連絡担当者

                </td>
                <td valign="top">

                代表：<?php echo $this->row->OCBA_HEAD; ?><br/>
                担当：<?php echo $this->row->OCBA_CONT; ?>

                </td>
                </tr>
                <tr>

                </tr>
                <tr>

                <td valign="top" nowrap="">
                開設年月日
                </td>
                <td valign="top">
                <?php
                    if($this->row->OCBA_SDATE!='0000-00-00 00:00:00')
                        echo HelperBG::F_GetDate_JP($this->row->OCBA_SDATE);
                ?>
                </td>
                </tr>
                <tr>
                <td valign="top" nowrap="">
                開館期間
                </td>
                <td valign="top"><?php echo $this->row->OCBA_PERI; ?>
                </td>
                </tr>
                <tr>

                <td valign="top" nowrap="">
                休館日
                </td>
                <td valign="top"><?php echo $this->row->OCBA_REST; ?>
                </td>
                </tr>
                <tr>

                </tr>

                <tr>
                    <td valign="top" nowrap="">開館 / 閉館時間 </td>
                    <td valign="top">

                    <?php echo $this->row->OCBA_STIME; ?>

                    </td>
                </tr>

                <tr>

                <td valign="top" nowrap="">

                PR


                <td valign="top">

                <?php
                echo HelperBGtop::newline2br($this->row->OCBA_PR);
                ?>

                </td>
                </tr>
                <tr>

                </tr>
                </tbody></table>

        </div>
    <?php }else{ ?>
        <div>
            <p align="center">データは見つかりませんでした</p>
        </div>
    <?php } ?>
    </div>
    <input type="hidden" name="task" value=""/>
    <input type="hidden" name="boxchecked" value="0"/>
 </div>
 <!-- END CONTENT -->
 </form>
